﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace TANKWAR_alpha
{
    public class PlayMusic
    {
        //private const int SND_SYNC = 0x0;
        //private const int SND_ASYNC = 0x1;
        //private const int SND_NODEFAULT = 0x2;
        //private const int SND_LOOP = 0x8;
        //private const int SND_NOSTOP = 0x10;

        public static void Play(string file)
        {
            sndPlaySound(file,1);
        }

           [DllImport("winmm.dll")]
            private extern static int sndPlaySound(string file,int uFlags);
            

        }
    
}
